home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / source.exe / POSIX / SH / STD / STDC / STRLEN.C < prev    next >
C/C++ Source or Header  |  1992-07-13  |  241b  |  19 lines

  1. #include <string.h>
  2.  
  3. /*
  4.  * strlen - length of string (not including NUL)
  5.  */
  6. size_t
  7. strlen(s)
  8. Const char *s;
  9. {
  10.     register Const char *scan;
  11.     register size_t count;
  12.  
  13.     count = 0;
  14.     scan = s;
  15.     while (*scan++ != '\0')
  16.         count++;
  17.     return(count);
  18. }
  19.